<template>
  <van-nav-bar >
    <template #title>
      <span style="color: #fff">{{title}}</span>
    </template>
    <template #left>
        <van-icon :name="icon" color="#FFF" size="18" @click="$router.go(-1)"/>
    </template>
  </van-nav-bar>
</template>
<script>
export default {
    props:['title','icon']
}
</script>
<style scoped>
.van-nav-bar{
    background: #3196fa;
}
</style>